package context.config;

import cn.stimd.spring.beans.factory.annotation.Value;
import cn.stimd.spring.context.annotation.ComponentScan;
import cn.stimd.spring.context.annotation.Configuration;
import cn.stimd.spring.context.annotation.PropertySource;

/**
 * Created by Stimd
 * 项目地址：https://gitee.com/stimd/spring-wheel
 * 公众号：Java编程探微
 */
@Configuration
@PropertySource("jdbc.properties")  //加载配置文件
@ComponentScan(basePackages = "context.basic")
public class PropsConfig {
    @Value("${url}")
    private String url;

    public String getUrl() {
        return url;
    }
}
